package com.sq.ai.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @Author Li sir
 * @Date 2024/11/18
 */

@Data
@Component
@ConfigurationProperties("ai.middle")
public class AiMiddleConfig {

    private String url;

    private String port;

    private String startAlgor;

    private String stopAlgor;

    private String startDan;

    private String channelNode;

    public String getUrl(String aurl){
        return "http://"+url+":"+port + aurl;
    }

}
